package com.cloudfun.campusshare.service;

import com.cloudfun.campusshare.common.model.dto.AuditDTO;
import com.cloudfun.campusshare.common.model.vo.AuditVO;
import com.cloudfun.campusshare.entity.AuditEntity;

import java.util.List;

/**
 * Created by Huqin on 2019/12/30
 */
public interface AuditService {

    /**
     * 创建审核信息
     *
     * @param auditDTO
     * @return
     */
    AuditEntity create(AuditDTO auditDTO);

    /**
     * 根据申请查询审核信息
     *
     * @param applicationId
     * @return
     */
    List<AuditVO> getByApplicationId(String applicationId);

    /**
     * 根据申请id删除
     *
     * @param applicationId
     */
    void deleteByApplicationId(String applicationId);

    /**
     * 根据申请id获取最后一个
     *
     * @param applicationId
     * @return
     */
    AuditEntity getLatestByApplicationId(String applicationId);

}
